<template>
    <div id="app">
        <router-view></router-view>
    </div>
</template>

<script>
export default {
    name: 'App',
    mounted() {
        this.initView();
    },
    methods: {
        initView() {
            var ua = navigator.userAgent.toLowerCase();
            var mobile = /mobile/gi.test(ua);
            var isPC = !mobile;
            if (isPC) {
                console.log('当前为PC');
            } else {
                console.log('当前不是PC');
            }
        }
    }
};
</script>

<style lang="scss">
@import '@/scss/base.scss';
</style>
